﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctrCartDetail.ascx.cs" Inherits="Controls_Products_ctrCartDetail" %>
<%@ Register src="../../Common/Alert.ascx" tagname="Alert" tagprefix="uc1" %>

<div style ="float:left; padding:15px   " id="divProduct" runat="server"  >
<asp:Label id="lblBasket" runat ="server" Font-Bold="true" Font-Size="15px" ></asp:Label><br /><br />
  <asp:DataGrid ID="dtgCart" runat="Server" AutoGenerateColumns="False"  CellPadding="3"   
       CssClass="grdContainer"  BackColor="White"  BorderColor="#999999" 
        BorderStyle="None" BorderWidth="0px" GridLines="Vertical" 
        onitemcommand="dtgCart_ItemCommand" onitemdatabound="dtgCart_ItemDataBound" >
        <HeaderStyle CssClass="grdHeader" BackColor="#E04013" Font-Bold="True" ForeColor="White"  />
        <AlternatingItemStyle CssClass="grdAlterItem" BackColor="#DCDCDC" />
        <ItemStyle CssClass="grdItem" BackColor="#EEEEEE" ForeColor="Black" />
        <EditItemStyle CssClass="grdEditItem" />
        <SelectedItemStyle CssClass="grdSelectItem" Font-Bold="True" BackColor="#008A8C" ForeColor="White"  />
        <Columns>
       
            <asp:TemplateColumn  HeaderText="No">
                 <HeaderStyle Width="40px" ></HeaderStyle >
                <ItemTemplate>
                     <%# Container.ItemIndex + 1 %>
                </ItemTemplate>
            </asp:TemplateColumn>
            
            <asp:TemplateColumn  HeaderText="Images"  >
                 <HeaderStyle Width="130px"></HeaderStyle >
                <ItemTemplate>
                     <asp:Image ID="imgImage" runat ="server" Width ="138px" BorderWidth="0px" BorderColor="gray"    />
                </ItemTemplate>
            </asp:TemplateColumn>
            
              <asp:TemplateColumn  HeaderText="Information">
                 <HeaderStyle Width="500px" ></HeaderStyle >
                <ItemTemplate>
                        <div style="padding-bottom:3px " class ="grdItemLeft"><asp:Label  ID="lblProductID" Visible ="false" runat ="server"  ></asp:Label><asp:Label  ID="lblProductName" runat ="server"  ></asp:Label></div> 
                        <div style="padding-bottom:3px " class ="grdItemLeft"><asp:Label ID="lblProductCode" runat="server"    ></asp:Label></div>
                        <div style="padding-bottom:3px " class ="grdItemLeft"><asp:Label ID="lblCategory" runat="server" ></asp:Label></div>
                        <div style="padding-bottom:3px " class ="grdItemLeft"><asp:Label ID="lblTrademark" runat="server"  ></asp:Label></div>
                        <div style="padding-bottom:3px " class ="grdItemLeft"><asp:Label ID="lblPrice" runat="server" ForeColor="red" ></asp:Label></div>
                </ItemTemplate>
            </asp:TemplateColumn>
              <asp:TemplateColumn  HeaderText="Delete">
                 <HeaderStyle Width="90px" ></HeaderStyle >
                <ItemTemplate>
                     <asp:ImageButton id="btnDel" runat="server" ImageUrl ="~/images/icon_del.gif" ToolTip="Xóa khỏi giỏ hàng" CommandName="delete"  />
                </ItemTemplate>
            </asp:TemplateColumn>
         </Columns>
           <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
           <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" Mode="NumericPages" />
    </asp:DataGrid>
   
		
		</div>
		<div id="divProductInfor" runat ="server"   style ="float:left; padding-left:15px; padding-bottom:20px   ">
		    <div><asp:Label id="lblTotalProduct" Text = "Tổng số sản phẩm" Width="130px" runat ="server"></asp:Label><asp:Label id="lblTotalProductDetail" Font-Bold="true" runat ="server" ForeColor="Red"    ></asp:Label></div>
            <div><asp:Label id="lblGrandTotal" Text = "Tổng tiền thanh toán" Width="130px" runat ="server"></asp:Label><asp:Label id="lblGrandTotalDetail" Font-Bold="true"  runat ="server" ForeColor="Red" ></asp:Label></div>
		</div>
		<div id="divWarning" runat ="server" style=" border:1px solid #DD5578; height:20px; margin:15px   " >
		    <p><uc1:Alert ID="Alert1" runat="server" />
		</div>
		
		<div id="divCustomerInfor" runat ="server"  style ="float:left; padding:0px 15px 15px 15px   ">
	
		<asp:Label id="lblCustomerInfor" runat ="server" Font-Bold="true" Font-Size="15px" ></asp:Label>	<br /><br />
		<div style ="padding-bottom:6px ">
		    <asp:Label ID="lblName" runat ="server"  Width="100px" ></asp:Label>
		    <asp:TextBox id="txtName" runat ="server" Width="250px" MaxLength="200" ValidationGroup="Input"></asp:TextBox>
		</div>
		<div  style ="padding-bottom:6px ">
		    <asp:Label ID="lblAddress" runat ="server"  Width="100px" ></asp:Label>
		    <asp:TextBox id="txtAddress" runat ="server" Width="500px" MaxLength="200" ValidationGroup="Input"></asp:TextBox>
		</div>
		<div  style ="padding-bottom:6px ">
		    <asp:Label ID="lblTel" runat ="server" Width="100px" ></asp:Label>
		    <asp:TextBox id="txtTel" runat ="server" Width="250px" MaxLength="200" ValidationGroup="Input"></asp:TextBox>
		</div>
		<div  style ="padding-bottom:6px ">
		    <asp:Label ID="lblEmail" runat ="server" Width="100px" ></asp:Label>
		    <asp:TextBox id="txtEmail" runat ="server" Width="250px" MaxLength="200" ValidationGroup="Input"></asp:TextBox>
		</div>
        <div  style ="padding-bottom:6px ">
		    <asp:Label ID="lblContent" runat ="server"  Width="100px" ></asp:Label>
		    <asp:TextBox id="txtContent" runat ="server" Width="250px" MaxLength="240"></asp:TextBox>
		</div>
         <div  style ="padding-bottom:6px ">
		    <asp:Label ID="lblSendOffice" runat ="server"  Width="100px" ></asp:Label>
		    <asp:DropDownList ID="ddlSendOffice" runat ="server" Width="200px" ></asp:DropDownList>
		</div>
		<div style="padding-left:90px; padding-top:10px; float:left   ">
		     <asp:LinkButton  CssClass ="btnqouta" ID="btnQuotaWord" runat="server"  
       onclick="btnQuotaWord_Click" Width="120px" ></asp:LinkButton> 
   <asp:LinkButton  CssClass ="btnqouta" ID="btnQuotaExcel" runat="server"
       onclick="btnQuotaExcel_Click"   Width="120px"  ></asp:LinkButton>

                  <asp:LinkButton  CssClass ="btnqouta" runat="server" 
                            id="btnMakePrice" onclick="btnMakePrice_Click"  ValidationGroup="Input" Width="120px" ></asp:LinkButton>
		</div>
		</div>
		<asp:RequiredFieldValidator ID="rfvTel" runat="server" SetFocusOnError="true"   ControlToValidate="txtTel" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="rfvAddress" runat="server" SetFocusOnError="true"   ControlToValidate="txtAddress" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>


<asp:ValidationSummary ID="ValidationSummary4" ShowMessageBox="true" runat="server" ValidationGroup="Input" ShowSummary="False" />